<%@ Page Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="Comments.aspx.cs" Inherits="Impact.Web.Admin.Comments" EnableEventValidation="false" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <table class="AdminTable">
        <tr>
            <th style="height: 21px">Article Comments:</th>
            <th class="NonHeader" colspan="2" style="height: 21px"><asp:Label ID="articleName" runat="server" /></th>
        </tr>
        
        <asp:Repeater ID="commentRepeater" OnItemCommand="CommentRepeater_ItemCommand" runat="server">
            <ItemTemplate>
                <tr>
                    <td style="color: #666;">Author: <%# Eval("Author") %></td>
                    <td style="color: #666;">Posted: <%# Eval("CreatedOn") %></td>
                    <td rowspan="2" style="border-bottom: solid 1px #248;">
                        <asp:ImageButton ID="deleteCategory" CommandName="delete" CommandArgument='<%# Eval("CommentID") %>'
                            ImageUrl="images/red-x.png" AlternateText="Delete Comment" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td colspan="2" style="border-bottom: solid 1px #248;"><%# Eval("Body") %></td>
                </tr>
            </ItemTemplate>
        </asp:Repeater>
        
        <tr>
            <td colspan="2" style="text-align: center;">
                <impact:ImageLinkButton ID="okButton" ImageUrl="images/accept.png" Text="Ok" CssClass="AdminTableButton"
                    TargetUrl="Articles.aspx" runat="server" />
            </td>
        </tr>
        
    </table>

</asp:Content>
